isStopped

open fun isStopped(): Boolean(source)

Returns true if onStopCurrentWork has been called. You can use this, while executing your work, to see if it should be stopped.